import QtQuick 2.2
import "./mainmenu"
import "./programming"

Rectangle{
    width: 800; /*height: 600*/
    //color: "green"
    border.color: "blue"; border.width: 3

    //头条
    MainmenuItem{
        id: label
        width: parent.width; height: 20
        enabled: false
        imagepath: "../../images/programing.png"
        content: qsTr("NewProgramName - T_ROB1/MainModule/main")
        anchors{
            top: parent.top; left: parent.left; right: parent.right
        }
    }

//=======中间栏=======
    Rectangle{

        //=========MoveC set Property========
          PropSetMoveCPanel{
              id: moveC
              visible: false
              anchors.fill: parent
          }

        anchors{
            left: label.left; right: label.right;
            top: label.bottom; bottom: order.top
        }

        //菜单栏
        ProMenuBar{
            id: menubar
            width: parent.width
            anchors{
                top: parent.top; left: parent.left; right: parent.right
            }
        }
        //代码界面
        ProMainUi{
            id: programming
            anchors{
                top: menubar.bottom; bottom: parent.bottom; left: parent.left; right: parent.right
            }

            onClickedCodes: {
                moveC.visible = true;
                moveC.z = 0.9
            }
        }
    }

    //命令栏
    ProOrder{
        id: order
        width: parent.width
        anchors{
            /*top: menubar.bottom;*/ bottom: parent.bottom; left: parent.left; right: parent.right
            //bottomMargin: 5
        }
        onOnselect: {
            console.log(qsTr("getted the message from ProOrder -------------ProMainUi" + flag + "," + content))
            programming.showExtra(flag, content)
        }
    }




}
